﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;


namespace ForceSynch
{
    class Installer
    {
        private  string _location = Environment.GetEnvironmentVariable("ProgramFiles");
        private List<string> _files = new List<string>();
        public Installer()
        {
            _files.Add("ForceSynch.exe");
            _files.Add("config.xml");
            _location += "\\ForceSynch\\";
        }
        public string Install()
        {
            if (!Directory.Exists(_location))
            {
                Directory.CreateDirectory(_location);
            }
            foreach (string f in _files)
            {
                Helper.CopyFile(f, _location+f);
            }
            return _location;
        }
       
    }
}
